<% %>
 <span id='indicator_m' style="float:right;margin-right:40%;display:none;">
    <%=image_tag"indicator.gif"%>
 </span>
<div class='extra-nav'>
  <ul>
    <li class=active> 
      <%if session[:pid] == 0%>
	    <%=link_to "All projects".t + " [" + sprintf("%0.2f",@user.managed_projects_total_hours("all")) + "]","#"%>
      <%else%>
	    <%=link_to Project.find(session[:pid]).name + " [" + sprintf("%0.2f",Project.find(session[:pid]).total_hours('all')) + "]","#"%>
      <%end%>
	</li>
  </ul>
  <div style="float:left;margin-left:10px;">
  <%=link_to image_tag("arrow_bellow.gif",:border=>0),"#",:menu=>'menu3'%>
  </div>
  <div id='menuc'>
    <%=render :partial=>'menu3'%> 
  </div>
</div>

  <div id='right_tab'>
  [
   <%if session[:show] == 'unconfirmed' or session[:show].nil?%>
    <%= image_tag("unconfirmed.gif",:border=>0,:alt=>"Confirmed") + " <b>" + "Unconfirmed".t + "</b>:"%>
   <%else%>
    <%= image_tag("unconfirmed.gif",:border=>0,:alt=>"Confirmed") + " " + "Unconfirmed".t + ":"%>
   <%end%>
  <%if session[:pid] ==0%>
    <%=link_to_remote sprintf("%0.2f",@user.managed_projects_total_hours("unconfirmed")),
	                 :update=>'managed_projects',
	                 :loading =>"Element.show('indicator_m')",
	                 :complete=>"Element.hide('indicator_m')",
					 :url=>{:action=>'show_logs',:pid=>0,:show=>'unconfirmed'}
    %>
  <%else%>
    <%=link_to_remote sprintf("%0.2f",Project.find(session[:pid]).total_hours("unconfirmed")),
	                 :update=>'managed_projects',
	                 :loading =>"Element.show('indicator_m')",
	                 :complete=>"Element.hide('indicator_m')",
					 :url=>{:action=>'show_logs',:pid=>session[:pid],:show=>'unconfirmed'}
    %>
  <%end%>
  |
   <%if session[:show] == 'confirmed'%>
     <%=image_tag("finish.gif",:border=>0,:alt=>'Confirmed Time') + " <b>" + "Confirmed".t + "</b>: "%>
   <%else%>
     <%=image_tag("finish.gif",:border=>0,:alt=>'Confirmed Time') + " " + "Confirmed".t + ": "%>
   <%end%>
  <%if session[:pid] == 0%>
    <%=link_to_remote sprintf("%0.2f",@user.managed_projects_total_hours("confirmed")),
	                 :update=>'managed_projects',
	                 :loading =>"Element.show('indicator_m')",
	                 :complete=>"Element.hide('indicator_m')",
					 :url=>{:action=>'show_logs',:pid => session[:pid],:show=>'confirmed'}
    %>
  <%else%>
    <%=link_to_remote sprintf("%0.2f",Project.find(session[:pid]).total_hours),
	                 :update=>'managed_projects',
	                 :loading =>"Element.show('indicator_m')",
	                 :complete=>"Element.hide('indicator_m')",
					 :url=>{:action=>'show_logs',:pid =>session[:pid],:show=>'confirmed'}
					%>
  <%end%>
  ]
  </div>
<%=render :partial=>'time_log'%>
